package com.itheima.method;

public class Method08 {
    public static void main(String[] args) {
        int a = 10;
        int b = 20;

/*
   ^  异或的特点:异或两次为原数.
 */
        a= a^b;   // a= 10^20
        b= a^b;   // b= 10^20^20    b=10
        a= a^b;   // a= 10^20^10    a=20
        System.out.println(a);
        System.out.println(b);


    }
}
